﻿using Microsoft.AspNetCore.Mvc;

namespace Medlcalcare.MVC.Controllers
{
    
    public class UserController : Controller
    {
        public IConfiguration Configuration { get; }

        public UserController(IConfiguration configuration)
        {
            Configuration = configuration;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult GetUser()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        public IActionResult Login()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get< string>();
            return View();
        }
        public IActionResult UpdatePass()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        public IActionResult CreateUser()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
